package cz.pproproj.aaservice.guimodule.config;

import cz.pproproj.aaservice.guimodule.model.User;

/**
 * Created by inZa on 18. 1. 2015.
 */
public class UserHandler {


    public static User authenticate(String username, String password) throws Exception {

        if (username.equals("admin") && password.equals("pass")) {
            User user = new User(username);
            return user;
        } else {
            throw new Exception("Not valid login");
        }
    }

}
